package com.garen.sys.filter;

import javax.servlet.FilterConfig;
import javax.servlet.ServletException;

import com.garen.common.AbstractFilter;

/*
 * 
 */
final public class SysFilter extends AbstractFilter {
	

	public static final String USER = "USER";//用户key
	public static final String MENUS = "MENUS";//用户菜单key

	public static final String SESSION_SECURITY_CODE = "SESSION_SECURITY_CODE";//验证码
	public static final String SESSION_SECURITY_CODE_TIME = "SESSION_SECURITY_CODE_TIME";//时间戳
	
	 
	public void init(FilterConfig fc) throws ServletException {
		super.init(fc);
		PackResource pack = getSpringBean("packResource",PackResource.class);
		if(pack != null) {
			pack.init(fc.getServletContext());
		}
	}
	
	public SysFilter(){
		//上传附件过滤器
		regFilter(new UpLoadFilterImpl());
		//访问权限过滤器
		regFilter(new LimitFilterImpl());
	}
}
